<?php

namespace app\zmt\validate;

use think\Validate;

class BannerValidate extends Validate
{
    protected $rule = [
        'image' => 'require|max:255',
        'url'   => 'max:255',
    ];

    protected $message = [
        'image.require' => '图片不能为空',
        'image.max'     => '图片不能超过255个字符',
        'url.max'       => '地址链接不能超过255个字符',
    ];
}
